<?php
	$url = "http://www.beeasy.com.cn/shop/?act=convert_order&op=getOrderStatus";
	$param = [
		'userName' => 'llyb120',
		'userPass' => '123456',
		'orderSn' => '12345651212223',
	];
	ksort($param);
	$str = [];
	foreach ($param as $key => $val) {
		$str[] = "{$key}={$val}";
	}
	$str = implode("&", $str);
	$param['sign'] = md5($str);
	$response = file_get_contents($url . '&' . http_build_query($param));
	$result = json_decode($response,true);

	header("Content-type:text/html;charset=utf-8");

	if ($result['errCode'] == 0) {
		echo "查询成功";
		echo "<br>";
		echo "订单状态为 : " . $result['errMessage'];
		echo "<br>";
		echo "物流公司为 : " . $result['data']['shippingCompany'];
		echo "<br>";
		echo "物流号码为 : " . $result['data']['shippingCode'];
		echo "<br>";
		echo "物流公司代码为 : " . $result['data']['shippingCode'];
	}
	else{
		echo "查询错误，错误码为 " . $result['errCode'] . ', 错误信息为 ' . $result['errMessage'] ;
	}